<modal v-model="enabled" :mask="false" footer-hide draggable :width="miniMode?350:500">
    <template #header>
        <span :title="scene?.name" style="margin-right:5px">{{ scene?.name }}</span>
        <icon v-if="running" type="md-play" style="margin-right:5px" color="#19be6b"></icon>
        <icon v-else type="md-square" style="margin-right:5px" color="#ed4014"></icon>
        <ButtonGroup size="small">
            <Button size="small" icon="md-refresh" @click="start">{{$t('重启')}}</Button>
            <Button size="small" icon="md-square" @click="stop">{{$t('停止')}}</Button>
            <Button size="small" icon="ios-hammer" @click="miniMode=!miniMode">{{$t('工具')}}</Button>
        </ButtonGroup>
        <a class="ivu-modal-close" @click="enabled=false"><i class="ivu-icon ivu-icon-ios-close"></i></a>
    </template>
    <div v-show="!miniMode">
        <Log-View ref="logview" :levelChangeCallback="onLogLevelChange" :scene="scene"
            :isDebug="controller?.options.debug" :sendMessage="sendMessage" style="height:550px;overflow: auto;">
    </div>
</modal>